import { createRouter, createWebHashHistory } from 'vue-router'
import Qrcode from '@/views/Qrcode/index.vue'
import Timer from '@/views/Timer/index.vue'
import Dashboard from '@/views/Dashboard/index.vue'
import Encrypt from '@/views/Encrypt/index.vue'
import Video from '@/views/Video/index.vue'
export const routes = [
  {
    path: '/',
    name: '首页',
    component: Dashboard
  },
  {
    path: '/1',
    name: '生成二维码',
    component: Qrcode
  },
  {
    path: '/2',
    name: '时间戳转换',
    component: Timer
  },
  {
    path: '/3',
    name: '加密解密',
    component: Encrypt
  },
  {
    path: '/4',
    name: '视频拍照',
    component: Video
  }
]

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes
})

export default router
